package com.blindBox.back.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 大忽悠
 * @since 2021-11-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Topic implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 话题由谁发布,-1表示该话题由管理员发布
     */
    private Integer u_id;

    /**
     * 话题的发布时间
     */
    @TableField(fill = FieldFill.INSERT,value = "create_time")
    private LocalDateTime createTime;

    /**
     * 话题下面的创作内容数量
     */
    private String contents;

    /**
     * 1: 逻辑删除 0：不删除
     */
    @TableLogic
    @TableField("deleted")
    private Integer deleted;
}
